﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

using DependencyInjection;
using PolarExpress.View;
using PolarExpress.View.Interfaces;
using PolarExpress.Controller;
using PolarExpress.Controller.Interfaces;

namespace PolarExpress
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            MainModule module = new MainModule();
            Injector injector = new Injector(module);

            MainController mainController = injector.GetInstance(typeof(MainController)) as MainController;

            Application.Run(mainController.View as Form);
        }
    }
}
